package lab02.test06;

import com.sun.org.apache.xpath.internal.SourceTree;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入三角形三边：");
        Triangle tr = new Triangle();
        tr.setA(sc.nextDouble());
        tr.setB(sc.nextDouble());
        tr.setC(sc.nextDouble());
        tr.compose();
        tr.getArea();
        tr.getPerimeter();
        tr.alter();

        System.out.println("请输入梯形上底、下底以及高：");
        Ladder la = new Ladder();
        la.topline = sc.nextFloat();
        la.baseline = sc.nextFloat();
        la.high = sc.nextFloat();
        la.getArea();

        System.out.println("请输入圆的半径：");
        Circle ci = new Circle();
        ci.r = sc.nextFloat();
        ci.area();
    }
}
